package com.sduept.nwld.dataserver.model.rota;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 值班表实体模型
 * @author leodexin 20171218 
 *
 */
@Entity
@Table(name="t_rota_info")
public class RotaInfo  implements Serializable,Cloneable {
	private static final long serialVersionUID = 7756680368529220823L;
	@Id
	@Column(name="id")
	private String id;
	/**
	 * 人员名称（不仅仅局限于值班员）
	 */
	private String name;
	/**
	 * 人员编号
	 */
	private String coder;
	/**
	 * 日期
	 */
	private Date date;
	/**
	 * 年
	 */
	private int year;
	/**
	 * 月
	 */
	private int month;
	/**
	 * 日
	 */
	private int day;
	/**
	 * 星期几
	 */
	private int week;
	/**
	 *周数 number of week of Year
	 */
	private int nwOfYear;
	/**
	 *周数 number of week of Month
	 */
	private int nwOfMonth;
	/**
	 * 是否值班员,如果是并且当前是双周，默认为周会材料整理人员（业务）
	 */
	@Column(name="isManonduty")
	private boolean manonduty;
	/**
	 * 是否周末
	 */
	@Column(name="isWeekEnd")
	private boolean weekEnd;
	/**
	 * 是否节假日
	 */
	@Column(name="isHoliday")
	private boolean holiday;
	/**
	 * 节假日名称
	 */
	private String holidayName;
	/**
	 * 法定节假日前后是否需要补班
	 */
	@Column(name="isMakeupWork")
	private boolean makeupWork;
	/**
	 * 非值班人员当前位置
	 */
	private String position;
	/**
	 * 其他重要信息备注
	 */
	private String remark;
	/**
	 * 标注颜色信息
	 */
	private String showColor;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCoder() {
		return coder;
	}
	public void setCoder(String coder) {
		this.coder = coder;
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	public int getWeek() {
		return week;
	}
	public void setWeek(int week) {
		this.week = week;
	}	
	public int getNwOfYear() {
		return nwOfYear;
	}
	public void setNwOfYear(int nwOfYear) {
		this.nwOfYear = nwOfYear;
	}
	public int getNwOfMonth() {
		return nwOfMonth;
	}
	public void setNwOfMonth(int nwOfMonth) {
		this.nwOfMonth = nwOfMonth;
	}
	public boolean isManonduty() {
		return manonduty;
	}
	public void setManonduty(boolean manonduty) {
		this.manonduty = manonduty;
	}		
	public boolean isWeekEnd() {
		return weekEnd;
	}
	public void setWeekEnd(boolean weekEnd) {
		this.weekEnd = weekEnd;
	}
	public boolean isHoliday() {
		return holiday;
	}
	public void setHoliday(boolean holiday) {
		this.holiday = holiday;
	}
	public String getHolidayName() {
		return holidayName;
	}
	public void setHolidayName(String holidayName) {
		this.holidayName = holidayName;
	}
	
	public boolean isMakeupWork() {
		return makeupWork;
	}
	public void setMakeupWork(boolean makeupWork) {
		this.makeupWork = makeupWork;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getShowColor() {
		return showColor;
	}
	public void setShowColor(String showColor) {
		this.showColor = showColor;
	}
}
